package com.bdqn.mapper;

import com.bdqn.pojo.SysCheckItem;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface SysCheckItemMapper {
    List<SysCheckItem> selectAll(String checkItemName,String keywords,String status);
        @Update("UPDATE  sys_check_item SET check_item_name=#{checkItemName},keywords=#{keywords},unit_price=#{unitPrice},cost=#{cost},status=#{status},update_time=#{updateTime},update_by=#{updateBy} where check_item_id=#{checkItemId}")
        int update(SysCheckItem form);
        @Insert("INSERT INTO sys_check_item VALUES(null,#{checkItemName},#{keywords},#{unitPrice},#{cost},#{unit},#{typeId},#{status},#{createTime},null,#{createBy},null)")
        int insert(SysCheckItem form);
}
